import service from '@/utils/request'

// @Tags MaterialGroupDocument
// @Summary 创建物料群组配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MaterialGroupDocument true "创建物料群组配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /materialGroupDocument/createMaterialGroupDocument [post]
export const createMaterialGroupDocument = (data) => {
  return service({
    url: '/materialGroupDocument/createMaterialGroupDocument',
    method: 'post',
    data
  })
}

// @Tags MaterialGroupDocument
// @Summary 删除物料群组配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MaterialGroupDocument true "删除物料群组配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /materialGroupDocument/deleteMaterialGroupDocument [delete]
export const deleteMaterialGroupDocument = (params) => {
  return service({
    url: '/materialGroupDocument/deleteMaterialGroupDocument',
    method: 'delete',
    params
  })
}

// @Tags MaterialGroupDocument
// @Summary 批量删除物料群组配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除物料群组配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /materialGroupDocument/deleteMaterialGroupDocument [delete]
export const deleteMaterialGroupDocumentByIds = (params) => {
  return service({
    url: '/materialGroupDocument/deleteMaterialGroupDocumentByIds',
    method: 'delete',
    params
  })
}

// @Tags MaterialGroupDocument
// @Summary 更新物料群组配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MaterialGroupDocument true "更新物料群组配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /materialGroupDocument/updateMaterialGroupDocument [put]
export const updateMaterialGroupDocument = (data) => {
  return service({
    url: '/materialGroupDocument/updateMaterialGroupDocument',
    method: 'put',
    data
  })
}

// @Tags MaterialGroupDocument
// @Summary 用id查询物料群组配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MaterialGroupDocument true "用id查询物料群组配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /materialGroupDocument/findMaterialGroupDocument [get]
export const findMaterialGroupDocument = (params) => {
  return service({
    url: '/materialGroupDocument/findMaterialGroupDocument',
    method: 'get',
    params
  })
}

// @Tags MaterialGroupDocument
// @Summary 分页获取物料群组配置列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取物料群组配置列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /materialGroupDocument/getMaterialGroupDocumentList [get]
export const getMaterialGroupDocumentList = (params) => {
  return service({
    url: '/materialGroupDocument/getMaterialGroupDocumentList',
    method: 'get',
    params
  })
}
